package com.lanhu.designpattern.factory.facotrymethod;

/**
 * author:zhangzg
 * date:2020/10/29 19:24
 */
public class Test {
    public static void main(String[] args) {

        ApplePhoneFactory applePhoneFactory = new ApplePhoneFactory();
        System.out.println("苹果手机:" + applePhoneFactory.getPhone().getPrice());

        HaWeiPhoneFactory haWeiPhoneFactory = new HaWeiPhoneFactory();
        System.out.println("华为手机:" + haWeiPhoneFactory.getPhone().getPrice());
    }
}
